package org.onion.pattern.event.consumer;

public interface ExternalEventConverter {

    boolean support(Object event);

    ExternalEventInfo convert(Object event);

    boolean support(ExternalEventInfo eventInfo, Object metadata);

    Object convert(ExternalEventInfo eventInfo, Object metadata);

}
